package com.hyq.market.ui.home.shopcar;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.hannesdorfmann.mosby.mvp.MvpPresenter;
import com.hyq.market.R;
import com.hyq.market.base.AbsFragment;
import com.hyq.market.ui.home.home.PersenterHome;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/7/19 0019.
 */

public class ShopCarFt extends AbsFragment implements IViewShopCar {
    PersenterShopCar presenter;
    @BindView(R.id.checkbox)
    CheckBox checkbox;
    @BindView(R.id.text_price_des)
    TextView textPriceDes;
    @BindView(R.id.text_price)
    TextView textPrice;
    @BindView(R.id.parent_send)
    RelativeLayout parentSend;
    Unbinder unbinder;
    private View rootView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_layout_shopcar, null);
        unbinder = ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public MvpPresenter createPresenter() {
        presenter = new PersenterShopCar(this);
        return presenter;
    }


    @Override
    protected void lazyLoad() {
        // presenter.loadData();
    }


    @Override
    public BaseQuickAdapter getAdapter(int tyepe) {
        return null;
    }



    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }


    @Override
    public <T> void loadData(T t) {

    }
}
